package com.example.automanagement.mapper;

import com.example.automanagement.entity.DriverArchives;
import com.example.automanagement.util.PageBean;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DriverArchMapper {

    List<DriverArchives> pageList();

    @Select("select * from driver_archives where user_id = #{userId}")
    DriverArchives getDriverArchiveById(String userId);
    @Delete("delete from driver_archives where user_id = #{userId}")
    void deleteDriverArchiveById(DriverArchives archive);


    void insertDriverArchive(DriverArchives archives);

    void updateDriverArchive(DriverArchives archives);

    @Select("select driver_name from driver_archives ")
    List<DriverArchives> getAllDrivers();

}
